﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SDT.Model;
using SDT.Lib.Paging;
using SDT.Site.Properties;

namespace SDT.Site.ViewModels
{
    public class ProductSearchModels
    {       
        public IList<ProductType> ProductTypes { get; set; }
        public IList<ProductCategory> Categories { get; set; }
        public IList<ProductHoliday> ProductHolidays { get; set; }
        public IList<ConvertPrice> ConvertPrices { get; set; }
        public IList<Event> Events { get; set; }
        public IPagedList<Product> Products{ get; set; }
        public Dictionary<int, string> Times { get; set; }
        public Dictionary<int, string> OrderBy { get; set; }
        public Dictionary<int, string> Sells { get; set; }
        
        public string ImageUrl { get; set; }
        public string ImagePath { get; set; }
        public int? TimeID { get; set; }
        public string Keyword { get; set; }
        
        public int? PriceID { get; set; }
        public int? CategoryID { get; set; }
        public int? TypeID { get; set; }
        public int? HolidayID { get; set; }
        public int? EventID { get; set; }
        public int? OrderID { get; set; }
        public int? SellID { get; set; }
        public ProductType ProductType { get; set; }
        public ProductCategory Category { get; set; }
        public ProductHoliday ProductHoliday { get; set; }
        public Event Event { get; set; }
        public Tag Tag { get; set; }
        public ConvertPrice ConvertPrice { get; set; }
        
        //For details page
        public string PathTitle { get; set; }

    }    
    public class ProductListModels
    {
        public IList<Product> Products { get; set; }
        public Product CurrentProduct { get; set; }
        public string Keyword { get; set; }
        public string ImagePath { get; set; }
        public string ImageUrl { get; set; }
    }
    public class ProductDetailsModels
    {
        public Product Product { get; set; }
        public string Keyword { get; set; }
        public string ImagePath { get; set; }
        public string ImageUrl { get; set; }
        public string LogoPath { get; set; }
        public ProductSearchModels ProductSearch { get; set; }
    }
    public class ProductCategoryModels
    {
        public IList<ProductCategory> Categories { get; set; }
        public string Keyword { get; set; }
        public string ImagePath { get; set; }
        public string ImageUrl { get; set; }
    }
    public class ProductTagModels
    {
        public IList<Tag> Tags { get; set; }
    }
    public class DealIndexModels
    {
        public IList<ProductType> ProductTypes { get; set; }
        public IList<ProductCategory> Categories { get; set; }
        public IList<ConvertPrice> ConvertPrices { get; set; }
        public IList<ProductHoliday> ProductHolidays { get; set; }
        public IPagedList<Product> Products { get; set; }
        public string ImageUrl { get; set; }
        public string ImagePath { get; set; }
        public int? TimeID { get; set; }
        public string Keyword { get; set; }

        public int? PriceID { get; set; }
        public int? CategoryID { get; set; }
        public int? HolidayID { get; set; }
        public int? TypeID { get; set; }
        public ProductType ProductType { get; set; }
        public ProductCategory Category { get; set; }
        public ProductHoliday ProductHoliday { get; set; }
        public ConvertPrice ConvertPrice { get; set; }

        //For details page
        public string PathTitle { get; set; }

    }
    public class DealDetailsModels
    {
        public Product Product { get; set; }
        public string Keyword { get; set; }
        public string ImagePath { get; set; }
        public string ImageUrl { get; set; }
        public string LogoPath { get; set; }
        public DealIndexModels DealIndexModel { get; set; }
    }
    public class DealListModels
    {
        public IList<Product> Products { get; set; }
        public Product CurrentProduct { get; set; }
        public string Keyword { get; set; }
        public string ImagePath { get; set; }
        public string ImageUrl { get; set; }
    }
}
